import java.util.LinkedList;
import java.util.Iterator;
public class Linklist {
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public static void main(String[] args){
		Student S1= new Student(101,"Mahesh",22);
		Student S2= new Student(102,"Mah",23);
		Student S3= new Student(103,"Maheh",28);
		Student S4= new Student(104,"Mfshesh",32);
		Student S5= new Student(105,"Mahegffsh",12);
		Student S6= new Student(106,"Mahfsdfgesh",92);
		Student S7= new Student(107,"Mahsgfesh",21);
		Student S8= new Student(108,"Mahfdgfesh",26);
		Student S9= new Student(109,"Mahfgesh",42);
		Student S10= new Student(110,"dfdgd",62);
		LinkedList al= new LinkedList();
		al.add(S10);
		al.add(S9);
		al.add(S8);
		al.add(S7);
		al.add(S6);
		al.add(S5);
		al.add(S4);
		al.add(S3);
		al.add(S2);
		al.add(S1);
		
			System.out.println(al);
			
	}
		
}
	



class Student{
	
	int rollno;
	String name;
	int age;
	Student(int rollno,String name, int age){
		
		this.age=age;
		this.name=name;
		this.rollno=rollno;
	}
}